package com.hrl.service;

import com.hrl.dao.UserDao;
import com.hrl.domain.User;

import java.sql.SQLException;

public class CheckUser {
    public Boolean check(String name,String password) throws SQLException {
        User user = (new UserDao()).login(name, password);
        return user!=null?true:false;
    }
}
